

import request from '@/router/axios'

export function treeList() {
  return request({
    url: '/ems/emsdevicecategory/tree',
    method: 'get',
  })
}
export function treeTable(query) {
  return request({
    url: '/ems/emsdeviceaccount/list',
    method: 'get',
    params: query
  })
}
export function addDev(obj) {
  return request({
    url: '/ems/emsinsinspectstandard/linkStandardDevice',
    method: 'post',
    data: obj
  })
}

export function spotAddDev(obj) {
  return request({
    url: '/ems/emsinsinspectstrategy/linkStrategyDevice',
    method: 'post',
    data: obj
  })
}
export function starndAddDev(obj) {
  return request({
    url: '/ems/emsrepstandard/linkStandardDevice',
    method: 'post',
    data: obj
  })
}
export function planAddDev(obj) {
  return request({
    url: '/ems/emsrepplan/linkPlanDevice',
    method: 'post',
    data: obj
  })
}
export function standardAddDev(obj) {
  return request({
    url: '/ems/emsmaistandard/linkStandardDevice',
    method: 'post',
    data: obj
  })
}
export function maplanAddDev(obj) {
  return request({
    url: '/ems/emsmaiplan/linkPlanDevice',
    method: 'post',
    data: obj
  })
}
// export function delObj(id) {
//   return request({
//     url: '/ems/emsinsinspectplan/' + id,
//     method: 'delete'
//   })
// }

// export function putObj(obj) {
//   return request({
//     url: '/ems/emsinsinspectplan',
//     method: 'put',
//     data: obj
//   })
// }
